package com.itheima.tlias08_14.service;

import com.itheima.tlias08_14.annotation.Log;
import com.itheima.tlias08_14.dto.SelectDeptDTO;
import com.itheima.tlias08_14.entity.Department;
import com.itheima.tlias08_14.entity.DepartmentDTO;
import com.itheima.tlias08_14.utils.ResultUtil;

import java.util.ArrayList;
import java.util.List;

public interface DeptService {
    ArrayList<SelectDeptDTO> selectAllDTO();

    @Log
    ResultUtil insertDept(Department dept);

    @Log
    ResultUtil deleteDeptById(Integer id);

    SelectDeptDTO selectDeptById(Integer id);

    @Log
    ResultUtil updateDept(Department dept);

    Department selectDeptByName();

    int batchDelete(List<Integer> list);

    int batchInset(List<DepartmentDTO> list);
}
